

#include <stdio.h>
#include "sortCore.h"


int main( int argc  , char *argv[])
{



    /*
    coreInit(argv[1]);

    readBam2Vector(argv[1],12);

    sortVect();

    outputBam(argv[2],24);

    coreDestory();
    */
    int  i = 0 ;
    coreInit1(argv[1]);
    for( i = 1 ; i < argc - 1 ; i++ )
        readBamOffset2Vector( argv[i] , i-1 , 24);
    sortVect1();
    write_(argv + 1 ,  argc - 2 ,  argv[argc-1]  , 48);
    coreDestory1();
    return 0 ;
}
